
#include <QCoreApplication>
#include <QTcpSocket>

#include "jsonrpcservice.h"
#include "jsonrpctcpserver.h"
#include "tcpclient.h"
#include "testservice.h"

#include "unistd.h"

int main(int argc, char **argv){
    QCoreApplication app(argc, argv);

    JsonRpcTcpServer v_server;
    v_server.listen(5000);

    v_server.addService(new TestService());

    TcpClient client;
    client.run();

    //v_server.deleteLater();


    return app.exec();
}
